package cn.icare.cms;

import cn.icare.cms.dao.po.Notice;
import cn.icare.cms.model.ro.AddNoticeRO;
import cn.icare.cms.model.ro.EditNoticeRO;
import cn.icare.cms.model.vo.rest.MsgDatasVO;

import java.util.List;

public interface NoticeService {
    Integer createOne(AddNoticeRO ro,String actionUserName);

    boolean updateOne(EditNoticeRO ro,String actionUserName);

    boolean deleteOne(Integer id);

    boolean deleteBatch(List<Integer> ids);

    Notice getOne(Integer id);

    MsgDatasVO getList(Integer kind, String title, Integer pageNum, Integer pageSize);
    boolean exists(Integer id,String title);
}
